window.onload = function() {
    // 导航部分消息为0不显示
    $(function () {
        var informationIcon = $(".informationIcon").text();
        if (informationIcon == "0"){
            $(".informationIcon").css("display","none");
        }else{
            $(".informationIcon").css("display","inline-block");
        }
    });
//下载App隐藏的二维码部分
    $(".download").hover(function () {
        $(".downloadHide").toggle();
    });
    $(".downloadHide").hover(function () {
        $(".downloadHide").toggle();
    });

//登录之后个人信息的下拉菜单部分
    $(".myselfPic").hover(function () {
        $(".myselfDownList").toggle();
    });
    $(".myselfDownList").hover(function () {
        $(".myselfDownList").toggle();
    });
//退出用户
    $(".loginOut").click(function () {
        $.ajax({
            type: "post",
            url: "/user/loginOut",
            data: {},
            success: function (data) {
                alert(data.msg);
                window.location.href = "/user/sign";
            },
            error: function () {

            }
        });
    });
}